﻿//======================================================================
//
//        Copyright (C) 苏州逸仙软件    
//        All rights reserved
//
//        filename : M_T_MemberInfo_Exp.cs
//        description :
//
//        created by 周济 at 2010/12/14 10:05:18
//        mail:13912699233@139.com
//
//======================================================================


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace huaguwang
{
    /// <summary>
    /// 统一扩展实体类
    /// </summary>
    public abstract class M_T_Member_Exp
    {
        /// <summary>
        /// 专门用来存储登录信息的,后期有可能还有其他的扩展
        /// </summary>
        [Serializable]
        public class M_T_MemberLogin : M_T_Member
        {
            /// <summary>
            /// 登录
            /// <example>
            /// 此处不知道为什么不能够把父类,直接转换成子类
            /// </example>
            /// </summary>
            /// <param name="model"></param>
            public M_T_MemberLogin(M_T_Member model)
            {
                this.AnswerA = model.AnswerA;
                this.AnswerB = model.AnswerB;
                this.Birthday = model.Birthday;
                this.Email = model.Email;
                this.Flag = model.Flag;
                this.FreezeDate = model.FreezeDate;
                this.FreezeType = model.FreezeType;
                this.Gold = model.Gold;
                this.Grade = model.Grade;
                this.id = model.id;
                this.IDCard = model.IDCard;
                this.isApprove = model.isApprove;
                this.Name = model.Name;
                this.OpFreezeDate = model.OpFreezeDate;
                this.OpFreezeType = model.OpFreezeType;
                this.PassWord = model.PassWord;
                this.ProblemA = model.ProblemA;
                this.ProblemB = model.ProblemB;
                this.Sex = model.Sex;
                this.Tel = model.Tel;
                this.WinStock = model.WinStock;

            }
        }
        /// <summary>
        /// 保存问题或者答案用的
        /// </summary>
        public class ProblemAnswer
        {
            public string AnswerA { get; set; }
            public string AnswerB { get; set; }
            public string ProblemA { get; set; }
            public string ProblemB { get; set; }
        }
        /// <summary>
        /// 冻结类型
        /// </summary>
        public enum Freeze_Type
        {
            /// <summary>
            /// 正常0
            /// </summary>
            normal = 0,
            /// <summary>
            /// 冻结1
            /// </summary>
            freeze = 1,
            /// <summary>
            /// 永远冻结2
            /// </summary>
            foreverfreeze = 2
        }
        /// <summary>
        /// 后台管理中的查询列表字段类
        /// </summary>
        public class FindModel
        {
            public int id { get; set; }
            public string 姓名 { get; set; }
            public string 问题设置否 { get; set; }
            public string 登录冻结 { get; set; }
            public string 登录冻结时间 { get; set; }
            public string 操作冻结 { get; set; }
            public string 操作冻结时间 { get; set; }
            public string 金币 { get; set; }
            public string 积分 { get; set; }
            public string 验证否 { get; set; }
            public string 身份证 { get; set; }
            public string 搏股胜率 { get; set; }
        }
    }
}
